package com.xyy.saas.payment.service;

import com.xyy.saas.payment.dao.model.RoyaltyOrder;
import com.xyy.saas.payment.dao.model.SettleOrder;

import java.util.Date;
import java.util.List;

public interface SettleService {

    int updateRoyaltyOrderStatusByIds(List<Long> ids, Byte status);

    List<RoyaltyOrder> selectRoyaltyOrderByPayNo(String payNo);

    List<RoyaltyOrder> selectRoyaltyOrderByPayNoAndUserId(String payNo, String userId);

    List<RoyaltyOrder> selectRoyaltyOrderByPayNosAndUserId(List<String> payNos, String userId);

    List<RoyaltyOrder> selectRoyaltyOrderBySettleNo(String settleNo);

    int updateRoyaltyOrderSettleNoById(Long id, String settleNo);

    SettleOrder selectSettleOrderById(Long id);

    int updateSettleOrderStatusById(Long id, Byte status, Date successTime, Date updateTime, String channelRoyaltyNo);
}
